<?php

namespace App\Models\User;

use App\Models\Common\CommonModel;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class CallbackMoneyLog extends CommonModel {

    use HasFactory;

    protected $table = 'callback_money_log';

    public static function isCallbackMoney($buyUserId,$parentId):bool {
        return self::where(['buy_user_id'=>$buyUserId,'parent_id'=>$parentId])->exists();
    }



}
